package org.jetlinks.demo.protocol.siterwell.tcp.message;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 网关撤防状态时，网关设备发送到平台的数据
 * 设备网关发往平台的数据
 */
@Getter
@Setter
@NoArgsConstructor
public class D2SDeployRemove extends AbstractCommandRequest {


    public static D2SDeployRemove of(byte[] data) {
        D2SDeployRemove message = new D2SDeployRemove();
        message.fromBytes(data, 0);
        return message;
    }


    @Override
    protected void parseData() {
    }


    @Override
    public String toString() {
        return "{ device deploy for defence : " +
                "gateWayId =" + this.getGateWayId() +
                '}';
    }
}
